{include file="file:$theme_global/_header.tpl"}	
{include file="file:$theme_global/_user_image.tpl"}
<div id="main">
	<div class="main">
		<div class="sec">
			<div class="title">			
				<h1>{$pagetitle}</h1>
				{if $loggedInUsername eq $user.username}
				<a href="/usercontent/edit" title="New Artwork" class="more">New Artwork</a>			
				{/if}
			</div>
			<div class="inner">	
				{if count($content) gt 0}
				<ul class="thumbs-e">
					{foreach from=$content item=artwork}
					<li>
						<a href="/artwork-view/{$artwork.id}" title="{$artwork.title|escape}"><img src="{$artwork.media.thumb_image_url}" height="78" width="78" alt="" /></a>
						<h4><a href="/artwork-view/{$artwork.id}" title="{$artwork.title|escape}">{$artwork.title|escape}</a></h4>
						<p>{$artwork.description|replace:'<br />':' '|truncate:280:"...":true|escape}</p>
					</li>
					{/foreach}
				</ul>
				{else}
					<p class="alt">No artwork here.</p>
				{/if}	
			</div>
		</div>	
		{include file="file:$theme_global/_pager.tpl"}	
	</div>
	<div class="sub">
		{include file="file:$theme_global/_user_nav.tpl"}
	</div>
</div>
{include file="file:$theme_global/_footer.tpl"}